package orm;

import java.sql.Date;

/**
 * Illness entity. @author MyEclipse Persistence Tools
 */

public class Illness implements java.io.Serializable {

	// Fields

	private Integer illnessid;
	private Integer userid;
	private String groupName;
	private Date beginDate;
	private Date endDate;
	private Boolean treatment;
	private String hospital;
	private String doctor;
	private Integer comment;

	// Constructors

	/** default constructor */
	public Illness() {
	}

	/** minimal constructor */
	public Illness(Integer userid, String groupName, Date beginDate,
			Date endDate, Boolean treatment) {
		this.userid = userid;
		this.groupName = groupName;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.treatment = treatment;
	}

	/** full constructor */
	public Illness(Integer userid, String groupName, Date beginDate,
			Date endDate, Boolean treatment, String hospital, String doctor,
			Integer comment) {
		this.userid = userid;
		this.groupName = groupName;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.treatment = treatment;
		this.hospital = hospital;
		this.doctor = doctor;
		this.comment = comment;
	}

	// Property accessors

	public Integer getIllnessid() {
		return this.illnessid;
	}

	public void setIllnessid(Integer illnessid) {
		this.illnessid = illnessid;
	}

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public String getGroupName() {
		return this.groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public Date getBeginDate() {
		return this.beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return this.endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public Boolean getTreatment() {
		return this.treatment;
	}

	public void setTreatment(Boolean treatment) {
		this.treatment = treatment;
	}

	public String getHospital() {
		return this.hospital;
	}

	public void setHospital(String hospital) {
		this.hospital = hospital;
	}

	public String getDoctor() {
		return this.doctor;
	}

	public void setDoctor(String doctor) {
		this.doctor = doctor;
	}

	public Integer getComment() {
		return this.comment;
	}

	public void setComment(Integer comment) {
		this.comment = comment;
	}

}